double fun( double x, int y)
{ int i;
double z;
for(i=1, z=x; i<y;i++) z=z*x;
return z;
}
int main( )
{ 
    double x;
    int y;
    printf("请输入底数x和指数y:");
    scanf("%f %d",&x,&y);
    double result=fun(x,y);
    printf("%f的%d次方是:%f\n",x,y,result);
return 0;
}